﻿using System;
using System.Windows.Forms;

namespace Editor
{
    partial class EditorWindow
    {
        private void tsb_NewScene_Click(object sender, EventArgs e)
        {
            OnActionNewScene();
        }

        private void tsb_OpenScene_Click(object sender, EventArgs e)
        {
            OnActionOpenScene();
        }

        private void tsb_SaveScene_Click(object sender, EventArgs e)
        {
            OnActionSaveScene();
        }

        private void tsb_Undo_Click(object sender, EventArgs e)
        {
            OnActionUndo();
        }

        private void tsb_Redo_Click(object sender, EventArgs e)
        {
            OnActionRedo();
        }

        private void tsb_EditSelect_Click(object sender, EventArgs e)
        {
            m_EditType = EditType.Select;
            UpdateEditTypeButtons();
        }

        private void tsb_EditMove_Click(object sender, EventArgs e)
        {
            m_EditType = EditType.Move;
            UpdateEditTypeButtons();
        }

        private void tsb_EditRotate_Click(object sender, EventArgs e)
        {
            m_EditType = EditType.Rotate;
            UpdateEditTypeButtons();
        }

        private void tsb_EditScale_Click(object sender, EventArgs e)
        {
            m_EditType = EditType.Scale;
            UpdateEditTypeButtons();
        }
    }
}
